﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.Devices.Bluetooth;

namespace bleCore
{
    internal static class Utility
    {
        public static string MAC2String(ulong address)
        {
            byte[] mac_as_byte = BitConverter.GetBytes(address);
            Array.Reverse(mac_as_byte);
            string mac_as_string = BitConverter.ToString(mac_as_byte, 2, 6).Replace('-', ':').ToLower();
            return mac_as_string;
        }
    }
}
